<?php
            $c=0;
                ?>
                <script language="JavaScript">
                        <!--//
                        var MENU_ITEMS = [
                        <?php
                                if(strchr($_SESSION["guser_privilege"][$company_id]["20"],'e'))
                                {
                                ?>
                                ['Admin', "<?php echo $this->header_path;?>admin/relationships.php", null,
                                        ['Preferences',"<?php echo $this->header_path;?>admin/member_preferences.php"],
                                        ['Relationships',"<?php echo $this->header_path;?>admin/relationships.php",null,
                                                ['Account',"<?php echo $this->header_path;?>admin/relationships.php?relation_type=act"],
                                                ['Buyer',"<?php echo $this->header_path;?>admin/relationships.php?relation_type=buy"],
                                                ['Supplier',"<?php echo $this->header_path;?>admin/relationships.php?relation_type=sel"],
                                                ['Agent',"<?php echo $this->header_path;?>admin/relationships.php?relation_type=agt"],
                                                ['Prod Partner',"<?php echo $this->header_path;?>admin/relationships.php?relation_type=prd"],
                                        ],
				<?php
				if(strchr($_SESSION["guser_privilege"][$company_id]["2"],'r'))
					{
				?>
                                        ['User Management',"<?php echo $this->header_path;?>admin/user_management.php"],
					<?php
					}
					?>
                                        //['Partner Access',"<?php echo $this->header_path;?>leatherlink/admin/members_list.php"],
                                        //['Contact Details',"<?php echo $this->header_path;?>leatherlink/admin/company_contact.php"]
                                ],
                                <?php
                                }
                                else
                                $c++;

                        if(strchr($_SESSION["guser_privilege"][$company_id]["20"],'r'))
                                {
                                ?>
                                ['Masters', "<?php echo $this->header_path;?>lrp/sales/106/product_master_106.php", null,
                                                //['Master Edit',"<?php echo $this->header_path;?>leatherlink/admin/masters_edit.php"],
					['Leather',"<?php echo $this->header_path;?>lrp/sales/106/product_master_106.php", null,
                                                ['Leather Details',"<?php echo $this->header_path;?>lrp/sales/106/product_master_106.php"],
                                                ['Leather Rate',"<?php echo $this->header_path;?>lrp/sales/106/product_value_106.php"],
                                                ['Leather Colour',"<?php echo $this->header_path;?>lrp/sales/master_colour.php?product_category_id=106"],
                                                ['Leather Specifications',"<?php echo $this->header_path;?>lrp/sales/106/specification_details.php"],
                                                ['Specifications Type',"<?php echo $this->header_path;?>lrp/sales/specification_type_master.php?product_category_id=106"],
						//['Rejections',"<?php echo $this->header_path;?>leatherlink/stocks/masters/rejection_master.php"],
                                                <?php
                                                if(strchr($_SESSION["guser_privilege"][$company_id]["2"],'r'))
                                                        {
                                                        ?>
                                                //['Leather Pricing',"<?php echo $this->header_path;?>lrp/sales/106/product_value_106.php?product_category_id=106"],
                                                        <?php
                                                        }
                                                ?>

                                        ],
					[' Accessories',"<?php echo $this->header_path;?>lrp/sales/124/product_master_124.php",null ,
                                                ['Accessories',"<?php echo $this->header_path;?>lrp/sales/124/product_master_124.php"],
                                                ['Accessory Type',"<?php echo $this->header_path;?>lrp/sales/124/product_master_type_124.php"],
						['Colour',"<?php echo $this->header_path;?>lrp/sales/master_colour.php?product_category_id=124"],
                                                ['Specifications Type',"<?php echo $this->header_path;?>lrp/sales/specification_type_master.php?product_category_id=124"],
						//['Brand',"<?php echo $this->header_path;?>leatherlink/admin/brand_master.php"],
                                        ],
                                        ['Footwear',"<?php echo $this->header_path;?>lrp/sales/120/product_master_120.php", null,
                                                ['Articles',"<?php echo $this->header_path;?>lrp/sales/120/product_master_120.php"],
                                                //['Size System',"<?php echo $this->header_path;?>lrp/sales/120/size_master_type_120.php"],
                                                ['Size Breakup',"<?php echo $this->header_path;?>lrp/sales/120/size_master_120.php"],
                                                ['Sam Pattern(Incoming)',"<?php echo $this->header_path;?>lrp/sales/120/product_particulars.php?type=i"],
                                                ['Sam Pattern(Outgoing)',"<?php echo $this->header_path;?>lrp/sales/120/product_particulars.php?type=o"],
                                                ['Article Pictures',"<?php echo $this->header_path;?>lrp/sales/120/article_picture.php"],
						//['Mat Details',"<?php echo $this->header_path;?>lrp/sales/120/product_details_mat.php"],
                                                <?php
                                                if(strchr($_SESSION["guser_privilege"][$company_id]["2"],'r'))
                                                        {
                                                        ?>
                                                        ['Article Pricing',"<?php echo $this->header_path;?>lrp/sales/120/product_value_120.php?product_category_id=120"],
                                                <?php
                                                        }
                                                ?>
						//['Component Entry',"<?php echo $this->header_path;?>lrp/sales/126/product_master_126.php"],
                                                ['Costing Sheet Entry',"<?php echo $this->header_path;?>lrp/sales/product_design_master.php?product_category_id=120"]
                                        ],

                                        /*['Chemical',"<?php echo $this->header_path;?>lrp/sales/117/product_master_117.php", null,
                                                ['Chemical',"<?php echo $this->header_path;?>lrp/sales/117/product_master_117.php"],
                                                //['Brand',"<?php echo $this->header_path;?>leatherlink/admin/brand_master.php"],
                                        ],*/
                                        ['Production',"<?php echo $this->header_path;?>lrp/stock/106/stock_type_master.php", null,
                                                ['Stock Type',"<?php echo $this->header_path;?>lrp/stock/106/stock_type_master.php"],
                                                //['Production Stage',"<?php echo $this->header_path;?>leatherlink/production/106/masters/production_gate_master.php"],
                                                //['Production Process',"<?php echo $this->header_path;?>leatherlink/admin/process_master.php"],
                                                //['Prod Consumables',"<?php echo $this->header_path;?>leatherlink/production/106/masters/production_consumables_master.php"],
                                        ],
                                        ['Commercial',"<?php echo $this->header_path;?>leatherlink/admin/", null,
                                                ['Business Zone',"<?php echo $this->header_path;?>lrp/sales/master_zone.php"],
                                                ['Master City',"<?php echo $this->header_path;?>lrp/sales/master_city.php"],
						['Master Tax',"<?php echo $this->header_path;?>lrp/sales/master_tax.php"],
						['Cost Type',"<?php echo $this->header_path;?>lrp/sales/cost_type_master.php"],
                                        /*	['Receipt Gate',"<?php echo $this->header_path;?>leatherlink/purchase/masters/receipt_gate_master.php"],
                                                ['Shipment Gate',"<?php echo $this->header_path;?>leatherlink/sales/masters/shipment_gate_master.php"],
                                                ['Business Zone',"<?php echo $this->header_path;?>leatherlink/sales/masters/master_zone.php"],
                                                ['Commercial Tax',"<?php echo $this->header_path;?>leatherlink/admin/master_tax.php"]*/
                                        ],
                                ],
                                <?php
                                }
                                else
                                $c++;
                        if(strchr($_SESSION["guser_privilege"][$company_id]["3"],'r'))
                                {
                                ?>
                                ['Sales Order', "<?php echo $this->header_path;?>lrp/sales/order_commercial.php?product_category_id=120", null,
                                        <?php
                                        if(strchr($_SESSION["guser_privilege"][$company_id]["3"],'e'))
                                                {
                                                ?>
                                                ['Order Entry',"<?php echo $this->header_path;?>lrp/sales/order_commercial.php?product_category_id=120"],
                                                <?php
                                                }
                                        if(strchr($_SESSION["guser_privilege"][$company_id]["3"],'r'))
                                        ?>
                                        ['Pending Orders',"<?php echo $this->header_path;?>companies/reports/report.php?report_code=ordrep&report_customization_id=pen"],
                                        ['Bill Of Material',"<?php echo $this->header_path;?>lrp/sales/120/order_consumption.php"],

                                ],
                                <?php
                                }
                                else
                                $c++;
                        if(strchr($_SESSION["guser_privilege"][$company_id]["1"],'r'))
                                {
                                ?>
                                //menu for Shipments
                                ['Shipments', "<?php echo $this->header_path;?>lrp/sales/shipment_commercial.php?product_category_id=120",null ,
                                        <?php
                                        if(strchr($_SESSION["guser_privilege"][$company_id]["1"],'e'))
                                                {
                                                ?>
                                                ['Shipment Entry',"<?php echo $this->header_path;?>lrp/sales/shipment_commercial.php?product_category_id=120"],
                                                //['Packing',"<?php echo $this->header_path;?>lrp/sales/120/packing_entry.php"],
                                                ['Shipment List',"<?php echo $this->header_path;?>lrp/sales/120/shipment_list.php"],
                                                //['Packing List',"<?php echo $this->header_path;?>lrp/sales/120/packing_list.php"],
                                        <?php
                                                }
                                        ?>
                                        <?php
                                        if(strchr($_SESSION["guser_privilege"][$company_id]["2"],'r'))
                                                /*{
                                                ?>
                                                ['Accounts', "<?php echo $this->header_path;?>leatherlink/sales/shipments/shipments_list.php", null,
                                                ['Invoice Entry',"<?php echo $this->header_path;?>leatherlink/sales/accounts/shipments_list.php"]
                                                ],
                                                <?php
                                                }*/
                                                ?>
                                ],
                                <?php
                                }
                        else
                                $c++;
                        if(strchr($_SESSION["guser_privilege"][$company_id]["5"],'r'))
                                {
                                ?>
				['Stock', "<?php echo $this->header_path;?>users/homepage.php",null,
                                                ['Reconcile',"<?php echo $this->header_path;?>users/homepage.php",null,
							['Leather Stock',"<?php echo $this->header_path;?>lrp/stock/106/stock_reconcile_106.php"]
						],

                                ],
                                <?php
                                }
                                else
                                $c++;
                        if(strchr($_SESSION["guser_privilege"][$company_id]["1"],'r'))
                                {
                                ?>
                                ['Purchase', "<?php echo $this->header_path;?>lrp/purchase/receipts_commercial.php?product_category_id=106",null ,

                                        ['Order Entry', "<?php echo $this->header_path;?>lrp/purchase/order_commercial_pur.php?product_category_id=106", null,
                                        <?php
                                        if(strchr($_SESSION["guser_privilege"][$company_id][5],'e'))
                                                {
                                                ?>
                                                ['Leather',"<?php echo $this->header_path;?>lrp/purchase/order_commercial_pur.php?product_category_id=106"],
                                                ['Accesories',"<?php echo $this->header_path;?>lrp/purchase/order_commercial_pur.php?product_category_id=124"],
                                                <?php
                                                }
                                        ?>
                                        ],
                                        ['Receipts Entry', "<?php echo $this->header_path;?>lrp/purchase/receipts_commercial.php?product_category_id=106", null,
                                        <?php
                                        if(strchr($_SESSION["guser_privilege"][$company_id][5],'e'))
                                                {
                                                ?>
                                                //['Raw Material',"<?php echo $this->header_path;?>leatherlink/purchase/receipts/receipts_commercial.php?product_category_id=101"],
                                                ['Leather',"<?php echo $this->header_path;?>lrp/purchase/receipts_commercial.php?product_category_id=106"],
                                                ['Accessories',"<?php echo $this->header_path;?>lrp/purchase/receipts_commercial.php?product_category_id=124"],
                                                //['Prod Consumables',"<?php echo $this->header_path;?>lrp/purchase/receipts/receipts_commercial.php?product_category_id=125"],
                                                <?php
                                                }
                                        ?>
                                        ],
                                        ['Receipts Bill Entry', "<?php echo $this->header_path;?>lrp/purchase/receipt_bill_entry.php?product_category_id=106", null,
                                        <?php
                                        if(strchr($_SESSION["guser_privilege"][$company_id][5],'m'))
                                                {
                                                ?>
                                                ['Leather',"<?php echo $this->header_path;?>lrp/purchase/receipt_bill_entry.php?product_category_id=106"],
                                                ['Accessories',"<?php echo $this->header_path;?>lrp/purchase/receipt_bill_entry.php?product_category_id=124"],
                                                //['Prod Consumables',"<?php echo $this->header_path;?>lrp/purchase/supplier_list.php?action=BILLENTRY&product_category_id=125"],
                                                <?php
                                                }
                                        ?>
                                        ],
                                 ['Payment Entry', "<?php echo $this->header_path;?>lrp/purchase/supplier_list.php?action=PAYMENTENTRY&product_category_id=106", null,   <?php
                                        if(strchr($_SESSION["guser_privilege"][$company_id][5],'m'))
                                                {
                                                ?>
                                                ['Leather',"<?php echo $this->header_path;?>lrp/purchase/receipt_payment_entry.php?product_category_id=106"],
                                                ['Accessories',"<?php echo $this->header_path;?>lrp/purchase/receipt_payment_entry.php?product_category_id=124"],
                                                <?php
                                                }
                                        ?>
                                        ],
                                        /*['Purchase Return',"<?php echo $this->header_path;?>leatherlink/purchase/supplier_list.php", null,
                                                ['Raw Material',"<?php echo $this->header_path;?>leatherlink/purchase/supplier_list.php?action=POR&product_category_id=101"],
                                                ['Leather ',"<?php echo $this->header_path;?>leatherlink/purchase/supplier_list.php?action=POR&product_category_id=106"],
                                                ['Chemical ',"<?php echo $this->header_path;?>leatherlink/purchase/supplier_list.php?action=POR&product_category_id=117"],
                                        ],*/
                                ],
                                <?php
                                }

                        else
                                $c++;
                        if(strchr($_SESSION["guser_privilege"][$company_id]["11"],'r'))
                                {
                                ?>
				                                //menu for Report
                                ['Reports ', "<?php echo $this->header_path;?>users/homepage.php",null ,
                                        ['Sales Order', "<?php echo $this->header_path;?>companies/reports/report.php?report_code=ordrep&report_customization_id=pen", null,

                                                ['Pending Orders',"<?php echo $this->header_path;?>companies/reports/report.php?report_code=ordrep&report_customization_id=pen"],
                                                ['Completed Orders',"<?php echo $this->header_path;?>companies/reports/report.php?report_code=ordrep&report_customization_id=com"],
                                                ['Cancelled Orders',"<?php echo $this->header_path;?>companies/reports/report.php?report_code=ordrep&report_customization_id=can"],
                                                ['Deleted Orders',"<?php echo $this->header_path;?>companies/reports/report.php?report_code=ordrep&report_customization_id=del"],

                                        ],
					['Purchase Orders', "<?php echo $this->header_path;?>companies/reports/report.php?report_code=purordrep&report_customization_id=pen106", null,
						['Leather', "<?php echo $this->header_path;?>companies/reports/report.php?report_code=purordrep&report_customization_id=pen106"],
						['Accessories', "<?php echo $this->header_path;?>companies/reports/report.php?report_code=purordrep&report_customization_id=pen124"],
					],
					['Purchase Receipts', "<?php echo $this->header_path;?>companies/reports/report.php?report_code=receiptrep&report_customization_id=pur106", null,
						['Leather', "<?php echo $this->header_path;?>companies/reports/report.php?report_code=receiptrep&report_customization_id=pur106"],
						['Accessories', "<?php echo $this->header_path;?>companies/reports/report.php?report_code=receiptrep&report_customization_id=pur124"],
					],
					['Receipts Bill', "<?php echo $this->header_path;?>companies/reports/report.php?report_code=receiptbillrep&report_customization_id=pur106", null,
						['Leather', "<?php echo $this->header_path;?>companies/reports/report.php?report_code=receiptbillrep&report_customization_id=pur106"],
						['Accessories', "<?php echo $this->header_path;?>companies/reports/report.php?report_code=receiptbillrep&report_customization_id=pur124"],
					],
					['Purchase Payments', "<?php echo $this->header_path;?>companies/reports/report.php?report_code=paymentrep&report_customization_id=pur106", null,
						['Leather', "<?php echo $this->header_path;?>companies/reports/report.php?report_code=paymentrep&report_customization_id=pur106"],
						['Accessories', "<?php echo $this->header_path;?>companies/reports/report.php?report_code=paymentrep&report_customization_id=pur124"],
					],
                                        <?php
                                        if(strchr($_SESSION["guser_privilege"][$company_id]["7"],'r'))
                                                {
                                                ?>
                                        /* ['Production', "<?php echo $this->header_path;?>leatherlink/production/106/batches_list.php", null,
                                                        ['Production Orders',"<?php echo $this->header_path;?>leatherlink/production/106/production_orders.php"],
                                                        ['Production Report',"<?php echo $this->header_path;?>leatherlink/production/106/production_report.php"],
                                                        ['Batches in Production ',"<?php echo $this->header_path;?>leatherlink/production/106/batches_list.php"],
                                                        ['Sample Batches',"<?php echo $this->header_path;?>leatherlink/production/106/batches_list.php?type=sample"],
                                                        ['Bulk Batches',"<?php echo $this->header_path;?>leatherlink/production/106/batches_list.php?type=bulk"],
                                                        ['Chemical Issue',"<?php echo $this->header_path;?>leatherlink/production/106/issues_report_117.php"],
                                                        ['Raw Material Issue',"<?php echo $this->header_path;?>leatherlink/production/106/issues_report_101.php"],
                                                        ['Leather Issue',"<?php echo $this->header_path;?>leatherlink/production/106/issues_report_106.php"]
                                                ],*/
                                                /*['Production Planning', "<?php echo $this->header_path;?>leatherlink/production/106/production_status_report.php", null,
                                                        ['Order Production Status',"<?php echo $this->header_path;?>leatherlink/production/106/production_status_report.php"],
                                                        ['Order Stock Planning ',"<?php echo $this->header_path;?>leatherlink/production/106/order_stock_status_report.php"],
                                                ],*/
                                                <?php
                                                }
                                        ?>
                                        ['Sales Shipment', "<?php echo $this->header_path;?>lrp/sales/120/shipment_list.php", null,
                                                ['Shipments List',"<?php echo $this->header_path;?>lrp/sales/120/shipment_list.php"],
                                                //['Packing List',"<?php echo $this->header_path;?>lrp/sales/120/packing_list.php"],
                                                //['Sample Shipments',"<?php echo $this->header_path;?>leatherlink/sales/shipment/shipments_list.php?type=sample"],
                                                //['Bulk Shipments',"<?php echo $this->header_path;?>leatherlink/sales/shipment/shipments_list.php?type=bulk"],
                                        ],
					['Company Report', "<?php echo $this->header_path;?>admin/company_details.php?relation_type=buy", null,
						['Buyer', "<?php echo $this->header_path;?>admin/company_details.php?relation_type=buy"],
						['Supplier', "<?php echo $this->header_path;?>admin/company_details.php?relation_type=sel"],
						['Agent', "<?php echo $this->header_path;?>admin/company_details.php?relation_type=agt"],
						['Prod Partner', "<?php echo $this->header_path;?>admin/company_details.php?relation_type=prd"],
						['Account', "<?php echo $this->header_path;?>admin/company_details.php?relation_type=act"],
					],
					['Stock Report', "<?php echo $this->header_path;?>admin/company_details.php?relation_type=buy", null,
						['Current Leather', "<?php echo $this->header_path;?>companies/reports/report.php?report_code=curstkrep&report_customization_id=106"],
						['Current Accessories', "<?php echo $this->header_path;?>companies/reports/report.php?report_code=curstkrep&report_customization_id=124"],
					],
                                        //['Sales Return', "<?php echo $this->header_path;?>leatherlink/purchase/receipts/sales_return_106.php"],
                                /* ['Purchase Orders', "<?php echo $this->header_path;?>leatherlink/purchase/receipts/receipts_report_106.php", null,
                                                ['Raw Material', "<?php echo $this->header_path;?>leatherlink/purchase/orders/pending_purchase_orders_101.php", null,
                                                        ['Pending',"<?php echo $this->header_path;?>leatherlink/purchase/ordres/pending_purchase_orders_101.php"],
                                                        ['Completed',"<?php echo $this->header_path;?>leatherlink/purchase/ordres/completed_purchase_orders_101.php"],
                                                        ['Cancel',"<?php echo $this->header_path;?>leatherlink/purchase/ordres/cancelled_purchase_orders_101.php"],
                                                ],
                                                ['Leather', "<?php echo $this->header_path;?>leatherlink/purchase/orders/pending_purchase_orders_106.php", null,
                                                        ['Pending',"<?php echo $this->header_path;?>leatherlink/purchase/orders/pending_purchase_orders_106.php"],
                                                        ['Completed',"<?php echo $this->header_path;?>leatherlink/purchase/orders/completed_purchase_orders_106.php"],
                                                        ['Cancelled',"<?php echo $this->header_path;?>leatherlink/purchase/orders/cancelled_purchase_orders_106.php"],
                                                ],
                                                ['Chemical', "<?php echo $this->header_path;?>leatherlink/purchase/orders/pending_purchase_orders_117.php", null,
                                                        ['Pending',"<?php echo $this->header_path;?>leatherlink/purchase/orders/pending_purchase_orders_117.php"],
                                                        ['Completed',"<?php echo $this->header_path;?>leatherlink/purchase/orders/completed_purchase_orders_117.php"],
                                                        ['Cancelled',"<?php echo $this->header_path;?>leatherlink/purchase/orders/cancelled_purchase_orders_117.php"],
                                                ],
                                                ['Prod Consumables', "<?php echo $this->header_path;?>leatherlink/purchase/orders/pending_purchase_orders_125.php", null,
                                                        ['Pending',"<?php echo $this->header_path;?>leatherlink/purchase/orders/pending_purchase_orders_125.php"],
                                                        ['Completed',"<?php echo $this->header_path;?>leatherlink/purchase/orders/completed_purchase_orders_125.php"],
                                                        ['Cancelled',"<?php echo $this->header_path;?>leatherlink/purchase/orders/cancelled_purchase_orders_125.php"],
                                                ],
                                        ],*/
                                        /*['Purchase Receipts', "<?php echo $this->header_path;?>leatherlink/purchase/receipts/receipts_report_106.php", null,
                                                ['Raw Material',"<?php echo $this->header_path;?>leatherlink/purchase/receipts/receipts_report_101.php"],
                                                ['Leather',"<?php echo $this->header_path;?>leatherlink/purchase/receipts/receipts_report_106.php"],
                                                ['Chemical',"<?php echo $this->header_path;?>leatherlink/purchase/receipts/receipts_report_117.php"],
                                                ['Prod Consumables',"<?php echo $this->header_path;?>leatherlink/purchase/receipts/receipts_report_125.php"],
                                                ['Supplier payment ',"",null,
                                                ['Chemical',"<?php echo $this->header_path;?>leatherlink/purchase/accounts/supplier_payment_117.php"],
                                                ['Raw Material',"<?php echo $this->header_path;?>leatherlink/purchase/accounts/supplier_payment_101.php"]
                                                ]
                                        ],*/
                                        //['Purchase Return', "<?php echo $this->header_path;?>leatherlink/sales/shipment/purchase_return_list_101.php"],
                                        /*['Leather Stock', "<?php echo $this->header_path;?>leatherlink/stocks/stock_list_106.php", null,
                                                ['Current Leather Stock',"<?php echo $this->header_path;?>leatherlink/stocks/stock_list_106.php"],
                                                ['Leather Transactions',"<?php echo $this->header_path;?>leatherlink/stocks/stock_transactions_106.php"],
                                                ['Current Raw Stock',"<?php echo $this->header_path;?>leatherlink/stocks/stock_list_101.php"],
                                                ['Raw Transactions',"<?php echo $this->header_path;?>leatherlink/stocks/stock_transactions_101.php"],
                                                ['Assortment Report WB',"<?php echo $this->header_path;?>leatherlink/stocks/assortment_report_101.php"],
                                                ['Assortment Report FL',"<?php echo $this->header_path;?>leatherlink/stocks/assortment_report_106.php"],
                                                ['Overall Transactions',"<?php echo $this->header_path;?>leatherlink/stocks/stock_transactions_101_106.php"],
                                                ['Current Stock Summary',"<?php echo $this->header_path;?>leatherlink/stocks/stock_statement_101_106.php"],
                                        ],*/
                                        /*['Chemical Stock',"<?php echo $this->header_path;?>leatherlink/stocks/stock_list_117.php", null,
                                                ['Current Stock',"<?php echo $this->header_path;?>leatherlink/stocks/stock_list_117.php"],
                                                ['Stock Transactions',"<?php echo $this->header_path;?>leatherlink/stocks/stock_transactions_117.php"],
                                        ],*/
                                ],

                                <?php
                                }
                        else
                                $c++;
                        if(strchr($_SESSION["guser_privilege"][$company_id]["12"],'r'))
                                {
                                ?>
                                //menu for Stock
                                ['', "<?php echo $this->header_path;?>users/homepage.php", ,
                                        <?php
                                        if(strchr($_SESSION["guser_privilege"][$company_id]["12"],'e'))
                                                /*{
                                                ?>
                                                ['Merge Stock',"<?php echo $this->header_path;?>leatherlink/stocks/stock_merge.php"],
                                                ['RM Area Change',"<?php echo $this->header_path;?>leatherlink/stocks/stock_edit_101_temp.php"],
                                                ['Reconcile', "<?php echo $this->header_path;?>leatherlink/stocks/stock_reconcile_101.php", null,
                                                [' Add Raw',"<?php echo $this->header_path;?>leatherlink/stocks/stock_reconcile_101.php"],
                                                [' Add Leather',"<?php echo $this->header_path;?>leatherlink/stocks/stock_reconcile_106.php"],
                                                ['Add Chemical',"<?php echo $this->header_path;?>leatherlink/stocks/stock_reconcile_117.php"],
                                                ],
                                                <?php
                                                }*/
                                        ?>
                                ],
                                <?php
                                }
                        else
                                $c++;
                        
                        for($i=0;$i<$c;$i++)
                                {
                                ?>
                                [''],
                                <?php
                                }
                        ?>
                        ];
                        new menu (MENU_ITEMS, MENU_POS);
                        //-->
                </script>
